/*
 * Object
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 */

#include "Object.h"
#include <cstring>
#include <cstdlib>

namespace animationagent {



Object::Object() :
    objectID(NULL)
{
}

Object::~Object()
{
    if (objectID != NULL) {
        free(objectID);
    }
}

void Object::set_id(const char *oid)
{
    if (oid == NULL) {
        return;
    }
    if (objectID != NULL) {
        free(objectID);
    }
    objectID = strdup(oid);
}

const char *Object::get_id()
{
    return objectID;
}

}//end namespace object
